package cn.iocoder.yudao.module.javainfo.enums;

import cn.iocoder.yudao.framework.common.exception.ErrorCode;

/**
 * Member 错误码枚举类
 * <p>
 * member 系统，使用 1-004-000-000 段
 */
public interface ErrorCodeConstants {

    // ========== 用户相关  1-004-001-000 ============
    ErrorCode JAVA_USER_NOT_EXISTS = new ErrorCode(1_004_001_000, "用户不存在");
    ErrorCode JAVA_USER_DISABLE = new ErrorCode(1_004_001_002, "用户已删除");
    ErrorCode JAVA_USER_HAS_PETS = new ErrorCode(1_004_001_003, "用户名下存在宠物信息，无法删除");

    ErrorCode JAVA_PAT_NOT_EXISTS = new ErrorCode(1_004_001_001, "宠物不存在");

    // ========== 资金流水相关  1-004-002-000 ============
    ErrorCode FINANCIAL_BALANCE_NOT_ENOUGH = new ErrorCode(1_004_002_000, "账户余额不足");

    // ========== 商品分类相关 1-004-003-000 ============
    ErrorCode PRODUCT_SORT_NOT_EXISTS = new ErrorCode(1_004_003_000, "商品分类不存在");

    ErrorCode PRODUCT_SORT_EXISTS_CHILDREN = new ErrorCode(1_004_003_005, "存在子分类，无法删除");
    ErrorCode PRODUCT_SORT_PARENT_IS_CHILD = new ErrorCode(1_004_003_004, "不能设置自己的子分类为父分类");
    ErrorCode PRODUCT_SORT_NAME_DUPLICATE = new ErrorCode(1_004_003_003, "已经存在该商品分类名称");
    ErrorCode PRODUCT_SORT_PARENT_ERROR = new ErrorCode(1_004_003_002, "不能设置自己为父分类");
    ErrorCode PRODUCT_SORT_PARENT_NOT_EXISTS = new ErrorCode(1_004_003_001, "父分类不存在");
}
